package com.ruoyi.report_jl.domain.vo;

import java.math.BigDecimal;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.common.utils.BigDecimalUtil;
import lombok.Data;
import java.util.Date;



/**
 * 粗集料针片状颗粒含量、黏附性、0.075mm以下颗粒含量试验检测记录详情视图对象 report_jl_cjlzpznfxjlb_ba_detail
 *
 * @author tll
 * @date 2024-06-03
 */
@Data
@ExcelIgnoreUnannotated
public class ReportJlCjlzpznfxjlbBaDetailVo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long detailId;

    /**
     * 主表id
     */
    @ExcelProperty(value = "主表id")
    private Long excelId;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 粗集料与沥青黏附性试验分组
     */
    @ExcelProperty(value = "粗集料与沥青黏附性试验分组")
    private String cjllqnfxsyfz;

    /**
     * 粗集料与沥青黏附性试验序号
     */
    @ExcelProperty(value = "粗集料与沥青黏附性试验序号")
    private String cjllqnfxsyxh;

    /**
     * 粗集料与沥青黏附性试验方法
     */
    @ExcelProperty(value = "粗集料与沥青黏附性试验方法")
    private String cjllqnfxsyff;

    /**
     * 粗集料与沥青黏附性试验表面沥青剥落情况
     */
    @ExcelProperty(value = "粗集料与沥青黏附性试验表面沥青剥落情况")
    private String cjllqnfxsybmblqk;

    /**
     * 粗集料与沥青黏附性试验黏附性等级
     */
    @ExcelProperty(value = "粗集料与沥青黏附性试验黏附性等级")
    private BigDecimal cjllqnfxsynfxdj;

    /**
     * 粗集料与沥青黏附性试验平均等级
     */
    @ExcelProperty(value = "粗集料与沥青黏附性试验平均等级")
    private BigDecimal cjllqnfxsydjPjz;

    public void setCjllqnfxsynfxdj(BigDecimal cjllqnfxsynfxdj) {
        this.cjllqnfxsynfxdj = ObjectUtils.isNotEmpty(BigDecimalUtil.stpTrailZero(cjllqnfxsynfxdj))
            ? BigDecimalUtil.stpTrailZero(cjllqnfxsynfxdj).setScale(0, BigDecimal.ROUND_HALF_UP)
            : null;
    }

    public void setCjllqnfxsydjPjz(BigDecimal cjllqnfxsydjPjz) {
        this.cjllqnfxsydjPjz = ObjectUtils.isNotEmpty(BigDecimalUtil.stpTrailZero(cjllqnfxsydjPjz))
            ? BigDecimalUtil.stpTrailZero(cjllqnfxsydjPjz).setScale(0, BigDecimal.ROUND_HALF_UP)
            : null;
    }
}
